{% extends 'base.html' %}

{% block  title %}
    cpu信息页
{% endblock %}
{% block content %}
    {% include 'cpu-header.html' %}
    <h2>CPU信息</h2>
    <table class="table table-hover">
        <tr>
            <td>物理 CPU 核心数</td>
            <td>{{ physical_core_num }}</td>
        </tr>
        <tr>
            <td>逻辑 CPU 核心数</td>
            <td>{{ logical_core_num }}</td>
        </tr>
        <tr>
            <td>最近 1 分钟平均负载</td>
            <td>{{ load_avg.0 }}</td>
        </tr>
        <tr>
            <td>最近 5 分钟平均负载</td>
            <td>{{ load_avg.1 }}</td>
        </tr>
        <tr>
            <td>最近 15 分钟平均负载</td>
            <td>{{ load_avg.2 }}</td>
        </tr>
        <tr>
            <td>用户</td>
            <td>{{ cpu_time_percent.user }}</td>
        </tr>
        <tr>
            <td>系统</td>
            <td>{{ cpu_time_percent.system }}</td>
        </tr>
        <tr>
            <td>空闲</td>
            <td>{{ cpu_time_percent.idle }}</td>
        </tr>
    </table>

{% endblock %}